#include"list.h"
#include"vector.h"
#include"reverse_iterator.h"
#include<iostream>
using std::cout;
void test()
{
	zjs::list<int>l1;
	l1.push_back(1);
	l1.push_back(2);
	l1.push_back(3);
	l1.push_back(4);
	zjs::list<int>::reverse_iterator rit = l1.rbegin();
	while (rit != l1.rend())
	{
		cout << *rit << endl;
		++rit;
	}
}

void test1(const zjs::list<int>& l1)
{
	
	zjs::list<int>::const_reverse_iterator rit = l1.rbegin();
	while (rit != l1.rend())
	{
		cout << *rit << endl;
		++rit;
	}
}
void test2()
{
	zjs::vector<int>v;
	v.push_back(1);
	v.push_back(2);
	v.push_back(3);
	v.push_back(4);
	zjs::vector<int>::reverse_iterator rit = v.rbegin();
	while (rit != v.rend())
	{
		cout << *rit << endl;
		++rit;
	}
}
int main()
{
	//test();
	zjs::list<int>l1;
	const zjs::vector<int>l2(10,2);
	for (auto x : l2)
		cout << x << endl;
	l1.push_back(1);
	l1.push_back(2);
	l1.push_back(3);
	l1.push_back(4);
	test1(l1);
	//test2();
	return 0;
}